package com.zaydanwu.cla.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * students
 *
 * @author
 */
@Data
public class Students implements Serializable {
    private Long id;

    @NotBlank(message = "学生姓名不能为空")
    private String studentName;

    @NotNull(message = "性别不能为空")
    private Integer gender;

    @NotNull(message = "年龄不能为空")
    private Integer age;

    @NotNull(message = "学号不能为空")
    private Long stuNo;

    @NotNull(message = "班级不能为空")
    private Long myClass;

    /**
     * 学院
     */
    @NotBlank(message = "学院不能为空")
    private String academy;

    /**
     * 宿舍
     */
    @NotBlank(message = "学生宿舍不能为空")
    private String dormitory;

    @NotBlank(message = "密码不能为空")
    transient private String password;

    @NotBlank(message = "电话不能为空")
    private String phoneNumber;

    private String headPortrait;

}